var shopAuthenticationGrid;
$(function () {
    shopAuthenticationGrid = $("#shopAuthenticationGrid").bootgrid({
        ajax: true,
        url: ctx + "/shop/getAuthenticationShopList.do",
        formatters: {
            "commands": function (column, row) {
                return "<button title='审核' type=\"button\" class=\"btn btn-xs btn-default command-edit\" userName=\"" + row.userName + "\"  data-row-id=\"" + row.id + "\"><span class=\"fa fa-pencil\"></span></button> ";
            }
        }
    }).on("loaded.rs.jquery.bootgrid", function () {
        /* Executes after data is loaded and rendered */
        shopAuthenticationGrid.find(".command-edit").on("click", function (e) {
            addTab("authenticationShop"+$(this).data("row-id"),"店铺认证审核 - "+$(this).attr("userName"),ctx+"/shop/authenticationShop.do?id="+$(this).data("row-id"));
        });
    });
});